package cn.edu.scau.cmi.dengzejun.chapter08;

public class Example8_5 {
	public static void main(String args[]) {
		Bank bank=new Bank();
		try {
			bank.income(200, -100);
			bank.income(300, -100);
			bank.income(400, -100);
			System.out.printf("The bank has %d yuan\n", bank.getMoney());
			bank.income(200, 100);
			bank.income(99999,-100);
		}
		catch(BankException e) {
			System.out.println("There has some question in calculate provess");
			System.out.println(e.warnMess());
		}
		finally {
			System.out.printf("The bank has %d yuan now \n", bank.getMoney());
		}
		return;
	}
}
